package com.zan.pattern.responsibility.jdk;

/**
 * @Author Zan
 * @Create 2024/4/27 11:32
 * @Description : TODO(请用一句话描述该类的功能)
 * @ClassName: SecondFilter
 */
public class SecondFilter implements Filter {
    @Override
    public void doFilter(Request request, Response response, FilterChain chain) {

        System.out.println("过滤器2 前置处理");

        // 先执行所有request再倒序执行所有response
        chain.doFilter(request, response);

        System.out.println("过滤器2 后置处理");
    }
}
